package cn.mabach.goods.service;

import cn.mabach.DTO.PageUtils;
import cn.mabach.DTO.RS;
import cn.mabach.goods.entity.TemplateEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;
/**
 * 
 *
 * @author chenshun
 * @email 176468159@qq.com
 * @date 2019-12-20 13:30:34
 */
@Api(tags = "模板服务接口")
public interface TemplateService   {


    @GetMapping("/listTemplate")
    @ApiOperation(value = "分页查询")
    RS<PageUtils> queryPage(@RequestParam Map<String, Object> params);

    @GetMapping("/infoTemplate")
    @ApiOperation(value = "根据id查找")
    RS<TemplateEntity> getByIdE(@RequestParam("id") Integer id);

    @PostMapping("/saveTemplate")
    @ApiOperation(value = "保存")
    RS saveE(@RequestBody TemplateEntity entity);

    @PostMapping("/updateTemplate")
    @ApiOperation(value = "修改")
    RS updateByIdE(@RequestBody TemplateEntity entity);

    @PostMapping("/deleteTemplate")
    @ApiOperation(value = "根据ID集合删除")
    RS removeByIdsE(@RequestBody List<Integer> ids);
}

